package testaux;

public class StringList {
    public final String head;
    public final StringList tail;

    public StringList(String head) {
        this.head = head;
        this.tail = null;
    }

    public StringList(String head, StringList tail) {
        this.head = head;
        this.tail = tail;
    }

    public String toString() {
        return head +  (tail == null ? "" : " " + tail.toString());
    }
}
